package tianwang.utils.punctuator;

public class PunctuatorImpl implements Punctuator{

	private String punctuationRules = null;
	
	public void setPunctuationRules(String punctuationRules) {
		this.punctuationRules = punctuationRules;
	}

	public String[] punctuate(String text) {

		try{
			String[] sentences = text.split(punctuationRules);
			return sentences;
		} catch (Exception e){
			return null;
		}
	}
}
